



class Calc(object):
    def add(self,x,y,*d):
        result= x+y
        for i in d:
            result+=i
        return result
    def sub(self,x,y,*d):
        result= x-y
        for i in d:
            result-=i
        return result
    @classmethod
    def mul(cls,x,y,*d):
        result=x*y
        for j in d:
            result*=j
        return result
    @staticmethod
    def div(x,y,*d):
        if y!=0:
            result=x/y
        else:
            raise ZeroDivisionError
            return -1
        for i in d:
            if i!=0:
                result/=i
            else:
                raise ZeroDivisionError
                return -1
        return result
if __name__=='__main__':
    c= Calc()
    print(c.add(1,2,3,4))
    print(c.sub(1,2,3,4))
    print(c.mul(2,3,4))
    print(c.div(10,5,1))
    #print(c.div(1,0,0))
    #print(c.div(1,1,0))
    print(Calc.mul(1,2,4))
    print(Calc.div(100,10,5,1))

